﻿using System;
using System.Collections;
using System.Linq;
using System.Linq.Dynamic;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Web.Script.Services;
using System.Collections.Generic;
using CoyoEden.Web.Controls;
using CoyoEden.Web.Controller;
using CoyoEden.Web.Data;
using CoyoEden.Models;
using Vivasky.Core.Infrastructure;

namespace CoyoEden.Web.Services
{
	/// <summary>
	/// Summary description for Category
	/// </summary>
	[WebService(Namespace = "http://tempuri.org/")]
	[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
	// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
	[ScriptService]
	public class PortalFile : WebService
	{
		#region Methods
		[WebMethod]
		public FeedbackData Update(List<NameValuePair<string, string>> Params)
		{
			FeedbackData retVal = new FeedbackData();
			PortalFileController.Update(Params, out retVal);
			return retVal;
		}
		[WebMethod]
		public FeedbackData Delete(Dictionary<string, string> Params)
		{
			FeedbackData retVal = new FeedbackData();
			PortalFileController.Delete(Params, out retVal);
			return retVal;
		}
		#endregion

	}
}